function ShowAboutDialog(AboutDialog, MaskDialog)
{
	if (MaskDialog.style.display == "block")
	{
		MaskDialog.style.display = "none";
		document.body.style.overflow = "auto";
	}
	else
	{
		MaskDialog.style.display = "block";
		MaskDialog.style.height = getscrollheight();
		//document.body.style.height = MaskDialog.style.height;
		document.body.style.overflow = "hidden";
	}
	AboutDialog.style.display = MaskDialog.style.display;
}

function getscrollheight()
{
	var D = document;
	return Math.max(Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight));
};

function outliner(e)
{
	var child
	if (window.event)
	{
		child = e.srcElement.parentNode.parentNode.nextSibling;
	}
	else
	{
		child = e.target.parentNode.parentNode.nextSibling.nextSibling;
	}
	if (null != child)
	{
		child.style.display = child.style.display == "none" ? "" : "none";
	}
	changepic(e);
}

function changepic(e)
{
	var uMe;
	if (window.event)
	{
		uMe = e.srcElement;
	}
	else
	{
		uMe = e.target;
	}

	if (uMe.src.toLowerCase().lastIndexOf("gridplus.gif") != -1)
	{
		uMe.src = "Images/GridMinus.gif"
	}
	else
	{
		uMe.src = "Images/GridPlus.gif"
	}
}
function MaintainVisibilityBasedOnNumberOfUnusedReferences(e)
{
	var NumberOfUnusedReferences;
	var EventSource;
	if (window.event)
	{
		EventSource = e.srcElement;
		NumberOfUnusedReferences = EventSource.parentNode.parentNode.children[1].innerText;
	}
	else
	{
		EventSource = e.target;
		NumberOfUnusedReferences = EventSource.parentNode.parentNode.children[1].textContent;
	}
	if (NumberOfUnusedReferences.replace(/^\s+|\s+$/g, "") == "0")
	{
		EventSource.style.visibility = "hidden";
	}
	else
	{
		EventSource.style.visibility = "visible";
	}
}
